<!DOCTYPE html>
<title>Lintul|ueditor</title>
<script type="text/javascript" src="/assets/js/jquery.min.js"></script>

    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <script type="text/javascript" charset="utf-8" src="/assets/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/assets/ueditor/ueditor.all.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="/assets/ueditor/lang/zh-cn.js"></script>
</head>
<body>
<div class="col-lg-12">

  <form method="post" action="/category" enctype="multipart/form-data">
    <div>
      <script id="editor" type="text/plain" style="height:500px;"></script>
    </div>
    <hr>
    <!-- <button type="submit" class="btn btn-default" onclick="return checkInput();">添加</button>
  -->
</form>
</div>

<script type="text/javascript">
    //实例化编辑器
    //议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor');
</script>
</body>
</html>
